@echo off

rem set up environment for Java
rem set JAVA_HOME=D:\java\jdk1.8.0_40
rem set PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
rem set CLASSPATH=.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

echo starting up ...
set CURRENT_DIR=%cd%
echo %CURRENT_DIR%

set SERVER_OPTS=-Xms512m -Xmx1024m -XX:MaxNewSize=256m
echo %SERVER_OPTS%
java %SERVER_OPTS% -Dfile.encoding=utf8 -Djava.ext.dirs=./lib -classpath ./conf org.fastsyncer.server.jetty.JettyServer %CURRENT_DIR%